package com.vcc.data.entity;


import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Table;
import com.vcc.data.base.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

@EqualsAndHashCode(callSuper = true)
@Data
@Setter
@Getter
@Table(value = "vcc_boss_user")
public class BossUser extends BaseEntity implements Serializable {


    @Column(comment = "用户名", value = "username")
    private String username;

    @Column(comment = "邮箱", value = "email")
    private String email;

    @Column(comment = "密码", value = "password")
    private String password;

    @Column(comment = "账号", value = "account")
    private String account;

    @Column(comment = "状态", value = "status")
    private Integer status;

    @Column(comment = "注册用户", value = "register_user_id")
    private Long registerUserId;

    @Column(comment = "是否绑定谷歌验证", value = "has_bind_google")
    private Boolean hasBindGoogle;

    @Column(comment = "谷歌验证密钥", value = "google_secret")
    private String googleSecret;

    @Column(comment = "谷歌验证绑定时间", value = "google_bind_time")
    private Date googleBindTime;

    @Column(comment = "盐", value = "salt")
    private String salt;

    @Column(comment = "邀请码", value = "invitation_code")
    private String invitationCode;

    @Column(comment = "上级", value = "parent_id")
    private Long parentId;

    @Column(comment = "注册用户数", value = "register_count", ignore = true)
    private Integer registerCount;

    @Column(comment = "管理员备注", value = "admin_remark")
    private String adminRemark;
}
